package com.gewu.bluetoothflow.db

import androidx.room.Dao
import androidx.room.Query

@Dao
interface DeviceInfoBeanDao : BaseDao<DeviceInfoBean> {
    @Query("select * from t_device")
    fun getAllDevice(): MutableList<DeviceInfoBean>

    @Query("select * from t_device where name = :name")
    fun getDeviceByName(name: String): MutableList<DeviceInfoBean>

    @Query("select * from t_device where strId = :strId")
    fun getDeviceById(strId: String): MutableList<DeviceInfoBean>


    @Query("delete from t_device")
    fun deleteAll()

}